#!/usr/bin/env python
# @FileName :1.14课后练习.py
# @Time :2024/1/14 11:39
# @Author :lidingdang
str =input("请输入一串字符：")
n=0
for i in str:
    if i == "a":
        n+=1
print("a出现的次数为：",n)
